package com.example.mp.controller;

import com.example.mp.bean.Employee;
import com.example.mp.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther liujb
 * @date 2021/7/25-14:35
 */
@RestController
@RequestMapping("")
public class EmployeeController {

    @Autowired
    private IEmployeeService employeeService;


    @RequestMapping("/getEmpById")
    public Employee getEmpById(Integer id){
       return  employeeService.getById(id);
    }
}
